﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Brjostagjof_H4.Models.ContactModel>" %>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true,"Vinsamlegast lagfærðu eftirfarandi villur og reyndu aftur.") %>
        
        <fieldset>
            <legend></legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.email) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.email) %>
                <%: Html.ValidationMessageFor(model => model.email) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.subj) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.subj) %>
                <%: Html.ValidationMessageFor(model => model.subj) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.txt) %>
            </div>
            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.txt)%>
                <%: Html.ValidationMessageFor(model => model.txt) %>
            </div>
                 <asp:TextBox ID="contactConfirmation" runat="server" Visible="False"></asp:TextBox>                        
            <p>
                <input type="submit" value="Senda" />
            </p>
        </fieldset>

    <% } %>


